export default {
    methods: {
        checkLogin({
            msg = '请先登录',
            t = 500,
            url = '/login1'
        } = {}) {

            if (!this.$store.state.uid) {
                this.$toast(msg)
                setTimeout(v => {
                    this.$router.push(url)
                }, t)
                return false
            }
            return true

        }



    },
    filters: {
        //3.定义一个处理函数，参数value为要处理数据
        conversion(value) {
          //调用Date的方法，处理时间戳
          return new Date(value).toLocaleString();
        },
      },
}